package com.liz.lizrpccore.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * @author liangGongWei
 * @description
 * @create 2021-08-25 19:17
 **/

@Getter
@Setter
public class RemoteInvokeEntity {
    /**
    * client标识
    */
    private String clientId;

    /**
    * 方法名称标识
    */
    private String methodName;

    /**
    * 入参集合
    */
    private List<LizRpcArg> argsList;

    /**
    * 唯一请求标识
    */
    private String requestId;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
